diff options
author | Braxton Hall | 2022-10-28 19:48:48 +0000 |
---|---|---|
committer | GitHub | 2022-10-28 19:48:48 +0000 |
commit | 85d2dbd9bbbb03fda8acd2bf1d39be9174bd8601 (patch) | |
tree | 6e049f8119493f82d21d3b9738f1261185acdf4a /entries/nickbradley/.github | |
parent | e66315e5db9679072e601d376edcc940c559703c (diff) | |
parent | 26fc9432caa29eada805b3b8d26cd47d55772e9b (diff) |
Merge pull request #65 from braxtonhall/nick
Add Nick Bradley
Diffstat (limited to 'entries/nickbradley/.github')
-rw-r--r-- | entries/nickbradley/.github/workflows/fib.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/entries/nickbradley/.github/workflows/fib.yml b/entries/nickbradley/.github/workflows/fib.yml new file mode 100644 index 0000000..860ee22 --- /dev/null +++ b/entries/nickbradley/.github/workflows/fib.yml @@ -0,0 +1,38 @@ +name: fib\ +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + workflow_dispatch: + +jobs: + compute: + runs-on: ubuntu-latest + steps: + - name: sum + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash + run: | + prev_fib=${{ secrets.PREV_FIB_NUM }} + curr_fib=${{ secrets.CURR_FIB_NUM }} + next_fib=$((${prev_fib:-0} + ${curr_fib:-1})) + echo "prev=$curr_fib" >> $GITHUB_ENV + echo "curr=$next_fib" >> $GITHUB_ENV + - uses: gliech/create-github-secret-action@v1 + with: + name: PREV_FIB_NUM + value: ${{ env.prev }} + pa_token: ${{ secrets.GH_TOKEN }} + - uses: gliech/create-github-secret-action@v1 + with: + name: CURR_FIB_NUM + value: ${{ env.curr }} + pa_token: ${{ secrets.GH_TOKEN }} + - name: Create commit comment + uses: peter-evans/commit-comment@v2 + with: + body: | + Your Fibonacci number is ${{ env.curr }}. |